package co.laomag.coffee.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author 马泽朋
 * @version 1.0
 * @date 2020/4/18 下午 1:42
 */
@ApiModel(description = "返回的消息对象")
public class Message {
    @ApiModelProperty(value = "状态码")
    private int code;
    @ApiModelProperty("提示信息")
    private String info;
    @ApiModelProperty("具体响应数据")
    private String data;

    public Message() {
    }

    public Message(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public Message(int code, String info, String data) {
        this.code = code;
        this.info = info;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
